<template>
  <div>
    <Echart :option="option" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      option: {
        xAxis: {
          type: "category",
          data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
        },
        yAxis: {
          type: "value",
        },
        series: [
          {
            data: [],
            type: "line",
          },
        ],
      },
    };
  },
  mounted() {
    this.getList();
  },
  methods: {
    getList() {
      setTimeout(() => {
        this.option.series[0].data = [150, 230, 224, 218, 135, 147, 260];
      }, 2000);
    },
  },
};
</script>

<style lang="scss" scoped></style>
